4eb129c8bafc2af4446ce374d97bc0249e050d90,modules/admin/admin-impl/src/test/java/com/enonic/xp/admin/impl/rest/resource/content/ContentResourceTest.java,ContentResourceTest,countContentsWithDescendants_check_children_filtered,#,914

Before Change


        GetDescendantsOfContents json = new GetDescendantsOfContents();
        json.setContentPaths( contentPaths );

        ContentResource contentResource = ( (ContentResource) getResourceInstance() );
        Mockito.when( this.contentService.find( Mockito.isA( ContentQuery.class ) ) ).thenReturn(
            FindContentIdsByQueryResult.create().totalHits( 0L ).build() );

After Change


        GetDescendantsOfContents json = new GetDescendantsOfContents();
        json.setContentPaths( contentPaths );

        ContentResource contentResource = getResourceInstance();
        Mockito.when( this.contentService.find( Mockito.isA( ContentQuery.class ) ) ).thenReturn(
            FindContentIdsByQueryResult.create().totalHits( 0L ).build() );